import Vue from "vue";
import App from "./App.vue";
import router from "@/router/router";
Vue.config.productionTip = false;
// 判断屏幕宽度 , 进入移动端还是pc端
(function() {
	let jump = (function jump() {
		const screenWidth = window.innerWidth;
		if (screenWidth < 1040) {
			// window.location.href = "";
		} else {
			window.location.href =
				"http://stringify.gitee.io/giteeloginregisterpage/%E5%8E%9F%E7%94%9Fjs%E7%89%88/pc.html#/";
		}
		console.log(1);
		return jump;
	})();

	let timer = null;
	window.addEventListener("resize", () => {
		clearTimeout(timer);
		timer = setTimeout(jump, 400);
	});
})();

new Vue({
	render: h => h(App),
	router
}).$mount("#app");
